package com.bruce.asurada.assistant;
import dev.langchain4j.service.spring.AiService;
import reactor.core.publisher.Flux;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
@AiService(wiringMode = EXPLICIT 
        , streamingChatModel = "openAiStreamingChatModel" // 注入流式chatModel
        , chatMemoryProvider = "chatMemoryProvider")
public interface StreamAssistant {

    @SystemMessage(fromResource = "promt-template.txt")
    Flux<String> chat(@MemoryId String memoryId,@UserMessage String message);

}
